package com.example.tbplus14.Test;

import lombok.Data;
import org.apache.commons.lang3.time.DateUtils;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class ArrayTest {


    public static void main(String[] args) throws Exception{
        List<Arr> list = new ArrayList<>();
        list.add(new Arr(Stream.of("aaaa").collect(Collectors.toList())));
        System.out.println(list);
        list.get(0).getStringList().add("bbb");
        System.out.println(list);

        System.out.printf("%.2f%n", 2.12345);

        System.out.println(Collections.nCopies(7, 70));
        Date date = DateUtils.parseDate("2025-10-10");


    }


    @Data
    public static class Arr{
        private List<String> stringList;

        public Arr(List<String> stringList){
            this.stringList = stringList;
        }

    }


}
